package com.cskaoyan.factory;

import com.cskaoyan.bean.Fruit;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author stone
 * @date 2022/08/01 17:46
 */
public class FruitFactoryBean implements FactoryBean<Fruit> {
    @Override
    public Fruit getObject() throws Exception {
        return new Fruit("factoryBean");
    }

    @Override
    public Class<?> getObjectType() {
        return Fruit.class;
    }
}
